package com.starryx.driverschool.service;

import com.starryx.driverschool.po.Student;
import com.starryx.driverschool.vo.StudentQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface StudentService {

    // 查询所有用户
    List<Student> listStudent();

    // 分页查询所有用户
    Page<Student> listStudent(Pageable pageable);

    // 分页查询所有用户
    Page<Student> listStudent(Pageable pageable, StudentQuery studentQuery);

    // 保存
    Student saveStudent(Student student);

    // 根据 id 查询
    Student getStudent(Long id);

    // 根据编号查询
    Student getStudentByNo(String no);

    // 根据 id 修改用户
    Student updateStudent(Long id, Student student);

    // 根据 id 删除
    void deleteStudent(Long id);
}
